/* 
 * File:   point.cpp
 * Author: steve
 * 
 * Created on 16 January 2013, 21:05
 */

#include "point.h"

point::point() {
    this->x = 0.0; this->y = 0.0; this->z = 0.0;
}

point::point(const double& x, const double& y, const double& z) {
    this->x = x; this->y = y; this->z = z;
}

point::point(const point& orig) {
    this->x = orig.x; this->y = orig.y; this->z = orig.z;
}

point::~point() {
}

point& point::operator =(const point& other) {
    this->x = other.x; this->y = other.y; this->z = other.z;
}

point& point::operator +(const point& other) {
    this->x = this->x + other.x;
    this->y = this->y + other.y;
    this->z = this->z + other.z;
}

point& point::operator -(const point& other) {
    this->x = this->x - other.x;
    this->y = this->y - other.y;
    this->z = this->z - other.z;
}